/**
  * Author: Mei
  * Date: 2020-11-26 10:40
  * Description: 
  *
  */
#include <iostream>

using namespace std;

int main() {
    //int arr[] = {1, 2, 3};
    //decltype(*arr) b = arr[0];
    //arr[0] = 4;
    //cout << b << endl; //打印4
    int arr[] = {1, 2, 3};
    //移除引用
    remove_reference<decltype(*arr)>::type b = arr[0];
    arr[0] = 4;
    cout << b << endl; //打印1

    return 0;
}